import request from '@/utils/request';


/**
 * 获取列表
 */
export const getQuotationList = (data: any) => {
    return request({
        url: '/sj/optionalDetail/list',
        method: 'post',
        data
    });
};

/**
 * 删除列表
 */
export const deleteQuotation = (id: any) => {
    return request({
        url: `/sj/optionalDetail/remove?id=${id}`,
        method: 'delete',
    });
};

/**
 * 获取详情
 */
export const getQuotationDetail = (code: any) => {
    return request({
        url: `/sj/optionalDetail/${code}`,
        method: 'get',
    });
};

/**
 * 编辑
 */
export const updateQuotation = (data: any) => {
    return request({
        url: '/sj/optionalDetail/edit',
        method: 'put',
        data
    });
};